import socket


sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sk.connect(('127.0.0.1',50002))

while True:
    str1 = input('数据：').strip()
    sk.send(bytes(str1,'utf8'))
    print(sk.recv(1024))


    



